package com.erp.bean;

/**
 * @author zch
 * 库存实体类
 */
public class Inventory {

    /**
     * 库存编号
     */
    private int invid;

    /**
     * 商品编号
     */
    private int gid;

    /**
     * 库存数量
     */
    private int num;

    /**
     * 仓库编号
     */
    private int entid;

    @Override
    public String toString() {
        return "inventory{" +
                "invid=" + invid +
                ", gid=" + gid +
                ", num=" + num +
                ", entid=" + entid +
                '}';
    }

    public Inventory(int gid, int num, int entid) {
        this.gid = gid;
        this.num = num;
        this.entid = entid;
    }

    public Inventory() {
    }

    public Inventory(int invid, int gid, int num, int entid) {
        this.invid = invid;
        this.gid = gid;
        this.num = num;
        this.entid = entid;
    }

    public int getInvid() {
        return invid;
    }

    public void setInvid(int invid) {
        this.invid = invid;
    }

    public int getGid() {
        return gid;
    }

    public void setGid(int gid) {
        this.gid = gid;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public int getEntid() {
        return entid;
    }

    public void setEntid(int entid) {
        this.entid = entid;
    }
}
